﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UserLoginPanel.ascx.cs"
    Inherits="WebSite.UserControl.UserLoginPanel" %>
<asp:Panel runat="server" ID="panelLogin">
    <div class="login_p">
        <span class="lab_1">用户名：</span>
        <input id="tbUserName" runat="server" type="text" class="input_1" />
        <span class="lab_2">密<em>&nbsp;&nbsp;</em>码：</span>
        <input id="tbPassword" runat="server" type="password" class="input_2" />
        <asp:Button runat="server" ID="btlogin" CssClass="btn_1" Text=" " OnClick="btlogin_Click" />
        <div class="l_c_1">
            <a href="/Reg.aspx">我要注册</a> <em>&nbsp;&nbsp;&nbsp;</em> <a href="javascript:alert('请联系客服QQ：2821899740协助处理');">忘记密码</a>
        </div>
        <div class="l_c_2">
            <a class="link_l_1 iframe carrefourlogin" title="家乐福会员登录" href="/ThirdPartyLogin/CarrefourAuth.aspx">
                用家乐福帐号登录</a> <a href="javascript:window.open('/ThirdPartyLogin/TencentAuth.aspx');"
                    class="link_l_2">用QQ帐号登录</a> <a href="javascript:window.open('/ThirdPartyLogin/SinaAuth.aspx');"
                        class="link_l_3">用新浪微博登录</a>
            <script type="text/javascript">
                $(document).ready(function ()
                {
                    $(".carrefourlogin").colorbox({ iframe: true, width: "500", height: "300", close: "关闭", overlayClose: false });
                });
            </script>
        </div>
    </div>
</asp:Panel>
<asp:Panel runat="server" ID="panelLogined" Visible="false">
    <% if (currentBabyInfo != null)
       { %>
    <div class="logined_p">
        <!-- logined -->
        <div class="userphotocontainer">
            <img width="100px" height="100px" class="userphoto" src="<%= currentBabyInfo.BabyHeadImg %>"
                alt="" />
        </div>
        <div class="textpart">
            <div class="ft_14">
                <p>
                    <%= currentBabyInfo.BabyName %></p>
                <p>
                    <%= SayHello() %></p>
            </div>
        </div>
        <div class="textpart3"><div class="ft_14">
            <% if (Common.NullableHelper.CastValueType( WebSite.Core.Project_Session.CurrentUserBaby.ConfirmTeamId ) == 0)
               { %>
                <a href="/LookingForTeam.aspx">快去找宝宝组队吧！</a>
             <%}
               else
               { %>
                您已组队成功
             <%} %>
        </div></div>
        <div class="logoutcontainer">
            <a id="colorbox_newmsg2" href="/NewMessage.aspx" title='我的消息' class='iframe <%= Common.NullableHelper.CastValueType(  WebSite.Core.Project_Session.CurrentUserBaby.ConfirmTeamId ) == 0 ? "" : "hidden"  %>'>
                消息</a>
            <% if (Common.NullableHelper.CastValueType( WebSite.Core.Project_Session.CurrentUserBaby.ConfirmTeamId ) == 0)
               { %>
            <a class="wannajoin" href="/Server/WannaJoinAction.ashx">我要参赛</a>
            <% } %>
            <a class="logoutlb" href="/Logout.aspx">退出</a>
        </div>
    </div>
    <script type="text/javascript">
        $(document).ready(function ()
        {
            $("#colorbox_newmsg,#colorbox_newmsg2").colorbox({ iframe: true, width: "710", height: "460", close: "关闭", overlayClose: false });
        });
    </script>
    <%}
       else
       { %>
    <div class="logined_p">
        <!-- logined -->
        <div class="userphotocontainer">
            <img width="100px" height="100px" class="userphoto" src="/images/BabyGroup/waitselect_200.png"
                alt="" />
        </div>
        <div class="textpart">
            <div class="ft_14">
                <p>
                    尊敬的顾客</p>
                <p>
                    <%= SayHello() %></p>
                <p>
                <p>
                    &nbsp;</p>
            </div>
        </div>
        <div class="logoutcontainer">
            <a class="wannajoin" href="/Server/WannaJoinAction.ashx">我要参赛</a> <a class="logoutlb"
                href="/Logout.aspx">退出</a>
        </div>
    </div>
    <% } %>
</asp:Panel>
